package com.hyt.it.ogt.ks.enums.log;

import lombok.Getter;

/**
 * @author wuyingge
 * @version 1.0.0
 * @ClassName CandidateOperatorType.java
 * @Description 考生操作小类型
 * @createTime 2022年11月25日 08:58:00
 */
@Getter
public enum CandidateOperatorLogType {

    LOG_IN(301, "登录"),
    LOG_OUT(302, "登出"),
    MOVE_ANSWER(303, "离开答题"),
    IN_ANSWER(304, "进入答题（进入考试）"),
    SELECT_EXAM(305, "选择考试"),
    SURE_INFO(306, "确认信息"),
    DEVICE_CHECK(307, "设备检测"),
    PHOTO_COMPARE(308, "照片比对"),
    ID_CHECK(309, "人脸核身"),
    PC_MONITOR_OPEN(310, "PC监控开启"),
    MOBILE_MONITOR_OPEN(311, "移动监控开启"),
    SCREEN_SNAPSHOT(312, "屏幕快照"),
    CANDIDATE_MAKE_BELIEVE(313, "考生承诺"),
    CANDIDATE_HAND_UP(314, "考生举手"),
    DEVICE_CHECK_SKIP_APPLY(315, "设备检测跳过申请"),
    ID_FACE_SKIP_APPLY(316, "人脸核身跳过申请");

    private Integer code;
    private String msg;

    CandidateOperatorLogType(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static String getMsg(Integer code) {
        for (CandidateOperatorLogType value : CandidateOperatorLogType.values()) {
            if(value.getCode() == code) {
                return value.getMsg();
            }
        }
        return null;
    }
}
